/* http_error_codes.c - Error code declarations

    HTTP Fetcher 
    Copyright (C) 2001, 2003 Lyle Hanson (lhanson@users.sourceforge.net)

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public
    License as published by the Free Software Foundation; either
    version 2 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Library General Public License for more details.

    See LICENSE file for details
 */

#include "hfetcher_error_codes.h"
#include "hfetcher_error_codes_globals.h"


    /* Note that '%d' cannot be escaped at this time */
const char *hfetcher_errlist[] =
    {
    "Success",                                      /* HF_SUCCESS        */
    "Internal Error. What the hell?!",              /* HF_METAERROR      */
    "Got NULL url",                                 /* HF_NULLURL        */
    "Error converting port number",                 /* HF_PORTERROR      */
    "Timed out, no metadata for %d seconds",        /* HF_HEADTIMEOUT    */
    "Timed out, no data for %d seconds",            /* HF_DATATIMEOUT    */
    "Couldn't find return code in HTTP response",   /* HF_FRETURNCODE    */
    "Couldn't convert return code in HTTP response",/* HF_CRETURNCODE    */
    "Couldn't convert Content-Length to integer",   /* HF_CONTENTLEN     */
    "NULL pointer argument",                        /* HF_NULLPTR        */
    "Network error (description unavailable)"       /* HF_HERROR         */
#ifdef WIN32
    "A Winsock error occurred calling select (%d)"      /* HF_WINSOCK_SELECT  */
    "A Winsock error occurred calling WSAStartup (%d)"  /* HF_WINSOCK_STARTUP */
    "A Winsock error occurred calling gethostbyname (%d)"/* HF_WINSOCK_GETHBN */
#endif
    };

    /* Used to copy in messages from hfetcher_errlist[] and replace %d's with
     *  the value of errorInt.  Then we can pass the pointer to THIS */
char convertedError[128];
